#include<bits/stdc++.h>
using namespace std;

int main(){
    int n;
    cin >> n;
    n = 2 * n + 1;
    for(int i = 1; i <= n; i++){
        for(int j = 1; j <= n; j++){
            if(i == 1 || i == n || i == j || i + j == n + 1) cout << "*";
            else cout << " ";
        }
        cout << endl;
    }
    return 0;
}

/*
3  -> 2 * n + 1
*******    主对角线: i == j  次对角线: i + j = n + 1
 *   *
  * *
   *
  * *
 *   *
*******

*/